package com.pm.mapper.dept;

import com.pm.entity.po.dept.Department;
import com.pm.entity.po.dept.DepartmentType;
import com.pm.entity.po.dept.DeptNamePo;
import com.pm.entity.po.task.Task;
import com.pm.entity.vo.dept.DeptVO;
import com.pm.mapper.BaseMapper;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {
    List<DepartmentType> getListByType();

    /**
     * 查询不包含零时工作组在内的部门类型
     * @return
     */
    List<DepartmentType> getListByTypeNotFive();

    List<Department> Departments(Integer id);

    List<DepartmentType> getAllDepartmentT(Integer id);

    List<DeptVO> getDeptVOList(Integer id);

    List<Task> getTaskList(Task task);

    List<DeptNamePo> getAllDeptName();

    /**
     * 仅查询有任务的部门
     * @return
     */
    List<Department> getHaveTaskList(Department department);

    /**
     * 仅查询有打分的部门
     * @return
     */
    List<Department> getHaveScoreDeptList(Department department);
}